<?php

	class Category extends AppModel {
		var $name = 'Category';
		var $useTable = 'taxonomies';
		
		var $belongsTo = array(
			'Term'
		);
		
		var $hasAndBelongsToMany = array(
			'Product' => array(
				'className' => 'Product',
				'joinTable' => 'products_taxonomies',
				'foreignKey' => 'product_id',
				'associationForeignKey' => 'taxonomy_id'
			)
		);
		
	}
